import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
import { WithStyles } from "@material-ui/core/styles/withStyles";
import * as React from "react";
import { Card, Col, Row } from "antd";
import InformationContent from "../health-information/InformationContent";

const styles = (theme: Theme) =>
  createStyles<"root">({
    root: {
      marginTop: 20
    }
  });

interface Iprops extends WithStyles<typeof styles> {}

/**
 * 描述：
 *  信息公开
 * @author sunshixiong
 * @date 2019/3/18-14:46
 */
const InformationDisclosure = (props: Iprops) => {
  return (
    <div>
      <Row type={"flex"} justify={"center"} className={props.classes.root}>
        <Col span={12} style={{ marginRight: 10 }}>
          <Card title={"政府政策"}>
            <InformationContent
              firstType={"信息公开"}
              otherStyle={true}
              secondType={"政府计划 "}
            />
          </Card>
        </Col>
        <Col span={6}>
          <Card title={"规章制度"}>
            <InformationContent
              otherStyle={true}
              firstType={"信息公开"}
              secondType={"规章制度"}
            />
          </Card>
        </Col>
      </Row>
    </div>
  );
};

export default withStyles(styles)(InformationDisclosure);
